// 太原市筛查年龄段人数统计
export const BSCZSCNLDTJ = {
	tooltip: {
		trigger: "item",
		formatter: "{b} : {c} ({d}%)"
	},
	legend: {
		orient: "",
		left: "50%",
		y: "center",
		textStyle: {
			color: "#fff",
		},
		itemWidth: 14,
		itemHeight: 14,
		icon: "roundRect",
	},
	color: ["#2E8CFF", "#FD9133", "#37D2D4", "#19CA88", "#858FF8"],
	series: [{
		type: "pie",
		avoidLabelOverlap: false,
		center: ["30%", "50%"],
		label: {
			show: true,
			position: 'inside',
			color: "#fff",
			formatter: '{d}%'
		},
		labelLine: {
			show: false,
		},
		data: [{
				value: 0,
				name: "40岁以下"
			},
			{
				value: 0,
				name: "40-45岁"
			},
			{
				value: 0,
				name: "46-59岁"
			},
			{
				value: 0,
				name: "60-70岁"
			},
			{
				value: 0,
				name: "70岁以上"
			},
		],
	}]
}
// 本市卒中分类占比
export const BSCZFLZB = {
	tooltip: {
		trigger: "item",
		formatter: "{b} : {c} ({d}%)"
	},
	legend: {
		orient: "",
		left: "50%",
		y: "center",
		textStyle: {
			color: "#fff",
		},
		itemWidth: 14,
		itemHeight: 14,
		icon: "roundRect",
	},
	color: ["#2E8CFF", "#FD9133", "#37D2D4", "#19CA88", "#858FF8"],
	series: [{
		type: "pie",
		avoidLabelOverlap: false,
		center: ["30%", "50%"],
		label: {
			show: true,
			position: 'inside',
			color: "#fff",
			formatter: '{d}%'
		},
		labelLine: {
			show: false,
		},
		data: [{
				value: 0,
				name: "脑梗死"
			},
			{
				value: 0,
				name: "脑出血"
			},
			{
				value: 0,
				name: "短暂性脑缺血发作"
			},
			{
				value: 0,
				name: "蛛网膜下腔出血"
			},
			{
				value: 0,
				name: "其他"
			},
		],
	}]
}
// 本市筛查人群分布
export const BSSCRQFB = {
	tooltip: {
		trigger: "item",
	},
	legend: {
		orient: "",
		left: "55%",
		y: "center",
		textStyle: {
			color: "#fff",
		},
		itemWidth: 14,
		itemHeight: 14,
		icon: "roundRect"
	},
	color: ["#38EB70", "#F7E270", "#ffa900"],
	series: [{
		type: "pie",
		avoidLabelOverlap: false,
		radius: ["55%", "100%"],
		center: ["30%", "50%"],
		label: {
			show: true,
			position: "inside",
			color: '#fff',
			formatter: '{d}%'
		},
		labelLine: {
			show: false,
		},
		data: [{
				value: 0,
				name: "低危"
			},
			{
				value: 0,
				name: "中危"
			},
			{
				value: 0,
				name: "高危"
			},
		],
	}, ]
}
// 本院住院人群分布
export const BYZYRQFB = {
	tooltip: {
		trigger: "item",
	},
	legend: {
		orient: "",
		left: "55%",
		y: "center",
		textStyle: {
			color: "#fff",
		},
		itemWidth: 14,
		itemHeight: 14,
		icon: "roundRect",
	},
	color: ["#38EB70", "#F7E270", "#FD9133", "#858ff8", "#f6580e"],
	series: [{
		type: "pie",
		avoidLabelOverlap: false,
		radius: ["55%", "100%"],
		center: ["30%", "50%"],
		label: {
			show: true,
			position: 'inside',
			color: "#fff",
			formatter: '{d}%'
		},
		labelLine: {
			show: false,
		},
		data: [{
				value: 0,
				name: "低危"
			},
			{
				value: 0,
				name: "中危"
			},
			{
				value: 0,
				name: "高危"
			},
			{
				value: 0,
				name: "TIA"
			},
			{
				value: 0,
				name: "卒中"
			},
		],
	}, ]
}
// 本市DNT
export const BSDNT = {
	tooltip: {
		trigger: "item",
	},
	legend: {
		orient: "",
		left: "60%",
		y: "center",
		textStyle: {
			color: "#fff",
		},
		itemWidth: 14,
		itemHeight: 14,
		icon: "roundRect",
	},
	color: ["#FF4500", "#FD9133", "#F7E16C", "#FFFFFF"],
	series: [{
		type: "pie",
		avoidLabelOverlap: false,
		radius: ["55%", "100%"],
		center: ["30%", "50%"],
		label: {
			show: true,
			position: 'inside',
			color: "#000",
			formatter: '{d}%'
		},
		labelLine: {
			show: false,
		},
		data: [{
				value: 15,
				name: "DNT>60分钟比例"
			},
			{
				value: 17,
				name: "DNT<60分钟比例"
			},
			{
				value: 42,
				name: "DNT<45分钟比例"
			},
			{
				value: 12,
				name: "DNT<30分钟比例"
			},
		],
	}, ],
}
// 本院DNT
export const BYDNT = {
	tooltip: {
		trigger: "item",
	},
	legend: {
		orient: "",
		left: "55%",
		y: "center",
		textStyle: {
			color: "#fff",
		},
		itemWidth: 14,
		itemHeight: 14,
		icon: "roundRect",
	},
	color: ["#FF4500", "#FD9133", "#F7E16C", "#FFFFFF"],
	series: [{
		type: "pie",
		avoidLabelOverlap: false,
		radius: ["55%", "100%"],
		center: ["30%", "50%"],
		label: {
			show: true,
			position: 'inside',
			color: "#000",
			formatter: '{d}%'
		},
		labelLine: {
			show: false,
		},
		data: [{
				value: 15,
				name: "DNT>60分钟比例"
			},
			{
				value: 17,
				name: "DNT<60分钟比例"
			},
			{
				value: 42,
				name: "DNT<45分钟比例"
			},
			{
				value: 12,
				name: "DNT<30分钟比例"
			},
		],
	}, ],
}
// 本院DNT
export const BYDPT = {
	tooltip: {
		trigger: "item",
	},
	legend: {
		orient: "",
		left: "55%",
		y: "center",
		textStyle: {
			color: "#fff",
		},
		itemWidth: 14,
		itemHeight: 14,
		icon: "roundRect",
	},
	color: ["#FF4500", "#FD9133", "#F7E16C", "#FFFFFF"],
	series: [{
		radius: ["65%", "90%"],
		type: "pie",
		avoidLabelOverlap: false,
		radius: ["55%", "100%"],
		center: ["30%", "50%"],
		label: {
			show: true,
			position: 'inside',
			color: "#000",
			formatter: '{d}%'
		},
		labelLine: {
			show: false,
		},
		data: [{
				value: 15,
				name: "DPT>60分钟比例"
			},
			{
				value: 17,
				name: "DPT<60分钟比例"
			},
			{
				value: 42,
				name: "DPT<45分钟比例"
			},
			{
				value: 12,
				name: "DPT<30分钟比例"
			},
		],
	}, ],
}
// 本院住院年龄段统计
export const BYZYNLDTJ = {
	tooltip: {
		trigger: "item",
		formatter: "{b} : {c} ({d}%)"
	},
	legend: {
		orient: "",
		left: "50%",
		y: "center",
		textStyle: {
			color: "#fff",
		},
		itemWidth: 14,
		itemHeight: 14,
		icon: "roundRect",
	},
	color: ["#2E8CFF", "#FD9133", "#37D2D4", "#19CA88", "#858FF8"],
	series: [{
		type: "pie",
		avoidLabelOverlap: false,
		center: ["30%", "50%"],
		label: {
			show: true,
			position: 'inside',
			color: "#fff",
			formatter: '{d}%'
		},
		labelLine: {
			show: false,
		},
		data: [{
				value: 0,
				name: "40岁以下"
			},
			{
				value: 0,
				name: "40-45岁"
			},
			{
				value: 0,
				name: "46-59岁"
			},
			{
				value: 0,
				name: "60-70岁"
			},
			{
				value: 0,
				name: "70岁以上"
			},
		],
	}]
}
// 国家质控网卒中治疗分布
export const GJZKWCZZLFB = {
	tooltip: {
		trigger: "item",
		formatter: "{b} : {c} ({d}%)"
	},
	legend: {
		orient: 'vertical',
		left: "60%",
		y: "center",
		itemWidth: 14,
		itemHeight: 14,
		textStyle: {
			color: "#fff"
		}
	},
	color: ["#38EB70", "#F7E16C", "#FD9133", "#FF4500", "#858FF8", "#37D2D4"],
	series: [{
		type: "pie",
		radius: ['40%', '75%'],
		center: ['30%', '50%'],
		avoidLabelOverlap: false,
		label: {
			show: true,
			position: 'inside',
			color: "#fff",
			formatter: '{d}%'
		},
		labelLine: {
			show: false,
		},
		data: [{
				value: 0,
				name: "AIS静脉溶栓"
			},
			{
				value: 0,
				name: "AIS介入再通"
			},
			{
				value: 0,
				name: "脑出血"
			},
			{
				value: 0,
				name: "颅内动脉瘤"
			}, {
				value: 0,
				name: "CEA"
			}, {
				value: 0,
				name: "CAS"
			}
		],
	}, ],
}
// 本市卒中中心质控
export const BSCZZXZK = {
	tooltip: {
		trigger: 'axis',
		axisPointer: {
			type: 'shadow'
		}
	},
	grid: {
		top: "30%",
		left: "4%",
		right: "4%",
		bottom: "6%",
		containLabel: true,
	},
	xAxis: {
		type: 'category',
		data: ['ODT', 'DNT', 'DIT', 'DPT', 'DRT', 'PRT'],
		axisLabel: {
			color: "#fff",
			fontSize: 12,
		}
	},
	yAxis: {
		name: "单位（分钟）",
		type: 'value',
		min: 0, // 坐标轴刻度最小值。
		minInterval: 1,
		axisLabel: {
			color: "#fff",
			fontSize: 12,
		},
		splitLine: {
			show: true,
			lineStyle: {
				type: "dashed",
				color: "rgba(164,218,255,0.3)",
			}
		},
		axisLine: {
			onZero: false,
			show: false,
			lineStyle: {
				color: "#fff",
			}
		},
	},
	color: ["#FD9133"],
	series: [{
		type: 'bar',
		data: [],
		barMaxWidth: 20,
	}]
}
// 本院卒中中心疾病种类分布
export const BYCZZXJBZLFB = {
	tooltip: {
		trigger: "axis",
	},
	grid: {
		left: "4%",
		right: "4%",
		bottom: "0",
		top: "25%",
		containLabel: true,
	},
	xAxis: [{
		type: "category",
		data: [
			"脑梗死",
			"TIA",
			"脑出血",
			"蛛网膜下腔出血",
			"颅内静脉血栓形成",
			"动脉盗血",
			"血管性痴呆",
			"卒中后睡眠障碍",
			"血管性帕金森",
			"其他"
		],
		axisLabel: {
			color: "#fff",
			fontSize: 11,
			
			interval: 0,
			formatter: function(value) {
				var str = "";
				var num = 5; //每行显示字数 
				var valLength = value.length; //该项x轴字数  
				var rowNum = Math.ceil(valLength / num); // 行数  

				if (rowNum > 1) {
					for (var i = 0; i < rowNum; i++) {
						var temp = "";
						var start = i * num;
						var end = start + num;

						temp = value.substring(start, end) + "\n";
						str += temp;
					}
					return str;
				} else {
					return value;
				}
			}
		}
	}],
	yAxis: [{
		name: "单位( 人数 )",
		type: "value",
		axisLabel: {
			color: "#fff",
			fontSize: 11,
		},
		min: 0, // 坐标轴刻度最小值。
		minInterval: 1,
		type: "value",
		splitLine: {
			show: true,
			lineStyle: {
				type: "dashed",
				color: "rgba(164,218,255,0.3)",
			},
		},

		axisLine: {
			show: false,
			lineStyle: {
				color: "#fff",
			},
		}
	}],
	series: [{
		type: "bar",
		data: [],
		barMaxWidth: 15, //柱图宽度
	}]
}
// 本院卒中中心质控
export const BYCZZXZK = {
	tooltip: {
		trigger: 'axis',
		axisPointer: {
			type: 'shadow'
		}
	},
	grid: {
		top: "30%",
		left: "8%",
		right: "4%",
		bottom: "6%",
		containLabel: true,
	},
	xAxis: {
		type: 'category',
		data: ['ODT', 'DNT', 'DIT', 'DPT', 'DRT', 'PRT'],
		axisLabel: {
			color: "#fff",
			fontSize: 12,
		}
	},
	yAxis: {
		name: "单位（分钟）",
		type: 'value',
		min: 0, // 坐标轴刻度最小值。
		minInterval: 1,
		axisLabel: {
			color: "#fff",
			fontSize: 12,
		},
		splitLine: {
			show: true,
			lineStyle: {
				type: "dashed",
				color: "rgba(164,218,255,0.3)",
			}
		},
		axisLine: {
			onZero: false,
			show: false,
			lineStyle: {
				color: "#fff",
			}
		},
	},
	color: ["#FD9133 "],
	series: [{
		type: 'bar',
		data: [],
		barMaxWidth: 20,
	}]
}